package com.reins.bookstore.service;

import com.reins.bookstore.entity.Basketline;
import com.reins.bookstore.object.BasketlineDTO;
import com.reins.bookstore.object.OneBookOrder;

import java.math.BigDecimal;
import java.util.List;


public interface BasketService {

    Basketline findBuylistById(Integer id);

    List<Basketline> findAllBuylists();

    List<BasketlineDTO> findAllBasketlinesByUserId(int id);

    public Basketline saveBuylist(Basketline add);

    public Basketline editBuylist(Basketline edit);

    public boolean deleteBuylistById(int id);

    public BasketlineDTO saveOneBasketline(OneBookOrder params);

    public Integer deleteOneBasketline(OneBookOrder params);

    Integer deleteAllByUserId(Integer userId);
}
